package cn.tedu.myweb.controller;

import cn.tedu.myweb.entity.Folder;
import cn.tedu.myweb.mapper.FolderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class FolderController {

    @Autowired(required = false)
    FolderMapper mapper;


    @RequestMapping("/folder/selectNoFather")
    public List<Folder> selectNoFather(){
        return mapper.selectNoFather();
    }
}
